Skip to content

fix(fleet): package metadata conformance fixture with crate - #13649

Closed
dezren39 wants to merge 1 commit into
mainfrom
fix/13618-pm-metadata-fixture
Closed

dezren39 wants to merge 1 commit into
mainfrom
fix/13618-pm-metadata-fixture

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #13618

Root cause

fleet-smoke run 45230909797 failed on gh_metadata::tests::pm_metadata_version_conformance_fixtures with "conformance fixture set unreadable ... No such file or directory".

The fixture existed on main; it was not deleted or renamed. The path was valid in a plain checkout, but pkgs/fleet/default.nix builds fleetSrc with lib.fileset.toSource { root = ./..; fileset = ./. + ../atlas-search/... } — i.e. only the pkgs/ subtree. The test resolved its oracle at doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/pm-metadata-v1.json, which is outside that packaged source, so the Nix build's cargo test could not see it.

Change

  • Move pm-metadata-v1.json into the fleet crate (pkgs/fleet/crates/fleet/src/testdata/), which is inside fleetSrc, and point the test at CARGO_MANIFEST_DIR/src/testdata/.
  • Keep the explicit panic!("conformance fixture set unreadable at {path}: {e}") guard so a missing/renamed fixture fails fast with path and OS error instead of a vaguer assertion.
  • Update the fixture README to record the new location and why.

Verification

  • cd pkgs/fleet && cargo test -p fleet --bin fleet gh_metadata::tests::pm_metadata_version_conformance_fixtures → 1 passed.
  • git diff --check clean; rename recorded by git (100% similarity).
  • Nix equivalent exercised by CI fleet-smoke on this PR (the failing job).
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T19:36:20Z",
    "session_id": "ses_e5df6486a9bffefUXT7rby8s7f",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-13618",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-13618",
      "repo": "developing-today/code",
      "branch": "fix/13618-pm-metadata-fixture",
      "sha": "b6761072ea2ba2df9704bfb0e429e4993d309d55"
    },
    "auth_subject": "oc-code-01",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 71e15fde-62e9-441b-96e3-26fa88476b79
Commits

Reviewing files that changed from the base of the PR and between ab82a4d and b676107.

Files selected for processing: 3

  • doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/fixtures/README.md
  • pkgs/fleet/crates/fleet/src/gh_metadata.rs
  • pkgs/fleet/crates/fleet/src/testdata/pm-metadata-v1.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Not merging: main already fixed this failure via #13626 (#13617, merge ad14746), which keeps the fixture in doc/ and passes it to the Nix build with PM_METADATA_V1_FIXTURE. This branch moves the fixture into the crate and conflicts with main's gh_metadata.rs (git merge-tree shows a content conflict in pkgs/fleet/crates/fleet/src/gh_metadata.rs). Recommend closing this PR as superseded by #13626. Tested head b676107 passed fleet-smoke dispatch run 45251338858 but is redundant. Reopen only if main's fix regresses.

@dezren39

Copy link
Copy Markdown
Member Author

Closing as superseded: main already carries the fix for this fleet-smoke failure via PR #13626 (merged ad14746), and this branch conflicts with it in pkgs/fleet/crates/fleet/src/gh_metadata.rs. Issue #13618 is already closed.

@dezren39

Copy link
Copy Markdown
Member Author

Closed as superseded. Superseded by PR #13626 (merged ad14746), which fixes this fleet-smoke failure on main.
Successor: 13626

@dezren39 dezren39 closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main CI failure: developing-today/code — fleet-smoke workflow (run 45230909797)

1 participant